package com.mallsystem.common.service;

import com.github.pagehelper.PageInfo;
import com.mallsystem.common.bean.Order;
import com.mallsystem.common.bean.OrderVo;
import com.mallsystem.common.exception.AllException;

public interface OrderService {
    void insert(OrderVo orderVo) throws AllException;
    //修改订单 - 修改快递单号 地址id 详细地址 状态
    boolean update(Order order) throws AllException;
    //根据条件查询
    PageInfo<Order> selectByCondition(Order condition, Integer pageNum, Integer pageSize);
    //根据id查询
    Order selectById(String id,Integer userId) throws AllException;
    //支付
    void pay(OrderVo orderVo) throws AllException;
    //管理员查询订单
    Order selectByIdOnAdmin(String id) throws AllException;
}
